/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.payment;


import com.enation.app.javashop.client.payment.WechatSmallchangeClient;
import com.enation.app.javashop.core.client.fallback.payment.WechatSmallchangeClientFallbackFactory;
import com.enation.app.javashop.core.handler.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author fk
 * @version v2.0
 * @Description: 微信零钱接口client
 * @date 2018/8/13 16:01
 * @since v7.0.0
 */
@FeignClient(value = "payment-service", fallbackFactory = WechatSmallchangeClientFallbackFactory.class,configuration = {FeignConfiguration.class})
public interface WechatSmallchangeClientFeignImpl extends WechatSmallchangeClient {

    /**
     * 自动发送零钱红包
     *
     * @param openId
     * @param price  申请金额
     * @param ip     ip
     * @param sn     流水号
     * @return
     */
    @Override
    @RequestMapping(value = "/client/wechat/smallchange/auto-send", method = RequestMethod.POST)
    boolean autoSend(@RequestParam("open_id") String openId, @RequestParam("price")Double price, @RequestParam("ip")String ip, @RequestParam("sn")String sn);
}
